package com.cooba.activitys;

import android.app.ProgressDialog;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity {

	private ProgressDialog dialog;
	protected Context mContext;

	public void showDialog(Context context, String content) {
		dialog = new ProgressDialog(context);
		dialog.setProgressStyle(0);
		dialog.setMessage(content);
		dialog.setCanceledOnTouchOutside(false);
		dialog.setCancelable(true);
		dialog.show();
	}

	public void killDialog() {
		if (dialog != null) {
			dialog.dismiss();
			dialog = null;
		}
	}

}
